GetTrackUserData
TheGetTrackUserData
function allows your application to obtain access to a track's user data list. You can then use theGetUserData
,AddUserData
, andRemoveUserData
functions (described on page 2-219, page 2-219, and page 2-220, respectively) to manipulate the contents of the user data list. If the data list contains text data, you can use theGetUserDataText
,AddUserDataText
, andRemoveUserDataText
functions (described on page 2-221, page 2-220, and page 2-222, respectively) to work with its contents.
pascal UserData GetTrackUserData (Track theTrack);
theTrack
- Specifies the track for this operation. Your application obtains this track identifier from such Movie Toolbox functions as
NewMovieTrack
andGetMovieTrack
(described on page 2-136 and page 2-188, respectively).DESCRIPTION
TheGetTrackUserData
function returns a reference to the track's user data list. This reference is valid until you dispose of the track. When you save the track, the Movie Toolbox saves the user data as well. If the function could not locate the track's user data, it sets this returned value tonil
.ERROR CODES
Memory Manager errors
invalidTrack -2009 This track is corrupted or invalid SEE ALSO
You can use theGetMediaUserData
function to gain access to a media's user data (described on page 2-217). Similarly, you can use theGetMovieUserData
function (described on page 2-215) to work with a movie's user data.